package com.example.springboot.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;

@Getter
@Setter
@TableName("sys_order")
@ApiModel(value = "Order对象", description = "")
@ToString
public class Order {

    private static final long serialVersionUID = 1L;

    /**
     * 订单ID
     */
    @ApiModelProperty("order_id")
    @TableId(value = "order_id")
    private String orderId;

    /**
     * 订单用户
     */
    @ApiModelProperty("order_user")
    private Integer orderUser;

    /**
     * 订单详情
     */
    @ApiModelProperty("order_detail")
    private String orderDetail;

    /**
     * 订单地址
     */
    @ApiModelProperty("order_address")
    private String orderAddress;

    /**
     * 订单状态
     */
    @ApiModelProperty("order_state")
    private String orderState;

    /**
     * 订单价格
     */
    @ApiModelProperty("order_price")
    private Integer orderPrice;

    /**
     * 订单时间
     */
    @ApiModelProperty("order_time")
    private LocalDateTime orderTime;
}
